Attribute Access Rights

Does anyone know how to set access rights for attributes via dxl? I have about 20 attributes that I need to restrict access. They are for groups and not users.

Thanks
vppatel - Thu May 13 10:02:49 EDT 2010

Re: Attribute Access Rights
johnzweck - Thu May 13 10:43:02 EDT 2010

According to the DXL Reference Manual:

string set{Def|Val}(Module m, AttrDef ad, Permission ps, {string user|string group})


The function setDef sets the permissions for the access list of the attribute definition ad in module m.
The function setVal sets the permission of all values of the attribute definition ad in module m.

John

Re: Attribute Access Rights
vppatel - Thu May 13 11:20:12 EDT 2010

johnzweck - Thu May 13 10:43:02 EDT 2010

According to the DXL Reference Manual:

string set{Def|Val}(Module m, AttrDef ad, Permission ps, {string user|string group})


The function setDef sets the permissions for the access list of the attribute definition ad in module m.
The function setVal sets the permission of all values of the attribute definition ad in module m.

John

so what am i doing wrong here

string setDef (Module m, AttrDef test, read|modify|delete|control, string xxxx)

xxxx is the group/user name

Re: Attribute Access Rights
johnzweck - Thu May 13 11:57:09 EDT 2010

vppatel - Thu May 13 11:20:12 EDT 2010
so what am i doing wrong here

string setDef (Module m, AttrDef test, read|modify|delete|control, string xxxx)

xxxx is the group/user name

Use the following:

Module m = current
AttrDef ad = find(m, "test")
 
string err = setDef(m, ad, read|modify|delete|control, "GroupName")
 
if (!null err) print err

 


John

 

Re: Attribute Access Rights
vppatel - Thu May 13 14:58:30 EDT 2010

johnzweck - Thu May 13 11:57:09 EDT 2010

Use the following:

Module m = current
AttrDef ad = find(m, "test")
 
string err = setDef(m, ad, read|modify|delete|control, "GroupName")
 
if (!null err) print err

 


John

 

Thanks, worked like a charm